#include "stdafx.h"

#ifndef _Client_h_
#define _Client_h_

#include "MessageIdentifiers.h"
#include "RakPeerInterface.h"
	
#include "RakNetTypes.h"
#include "BitStream.h"

#include <string>
#include <iostream>

class Client {
	private:
		char* serverPort;
		char* serverPassword;

		void serverInfo();

		char *maxPlayers;
		char *ip;

		RakNet::RakString rs;
		int int_message;
		RakNet::BitStream bsOut;

	public:
		RakNet::RakPeerInterface *client;
		RakNet::Packet *packet;
		bool connected;


		void createClient(char *maxPlayers);
		void connect(char* ip, char* port, const char* password);
		void disconnect();
		void receivePackets();
};

#endif